package com.lzx.payment.feign;

import com.lzx.payment.entity.vo.Activity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @author 程序员星星
 * @date 2022/12/14
 * @Description
 */
@Component
@FeignClient("five-cube-activity")
public interface ActivityClient {
    //根据id查询活动
    @GetMapping("/activity/activity/web/{id}")
    Activity getActivityById(@PathVariable Long id);
}
